import requests
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36"}
url="https://www.baidu.com/s?"
r=requests.get(url,headers=headers)

for cookie in r.cookies.keys():
    print(cookie,r.cookies.get(cookie))

